# save as: download_model.py
from modelscope import snapshot_download

model_dir = snapshot_download(
    'LLM-Research/Phi-3-mini-4k-instruct',
    cache_dir='./models'
)
print(f"✅ 模型已下载到: {model_dir}")